//
//  LCYChatMainView.h
//  IMByLinkUs
//
//  Created by lcy on 16/1/14.
//  Copyright © 2016年 lcy. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "LCYAttachmentAddView.h"
#import "LCYEmoticonPickerViewController.h"
#import "LCYAttachmentAddViewController.h"
#import "LCYPickEmoticonProtocol.h"

/**
 *   点击语音，录制交给控制器
 */
@protocol LCYChatMainViewDelegate <NSObject>

- (void)shouldStartRecord;

- (void)shouldCompleteRecord;

@end

/**
 *   该类用于展示聊天主界面所显示的所有控件，并且用于拼接这些控件，省去了在C中拼接控件导致的C的冗余。
 */

@interface LCYChatMainView : UIView

/**
 *  聊天主界面
 */
@property (weak, nonatomic) IBOutlet UICollectionView *LCYMainChatView;

/**
 *  底部输入View
 */
@property (weak, nonatomic) IBOutlet UIView *LCYBottomInputView;

/**
 *  录音按钮
 */
@property (weak, nonatomic) IBOutlet UIButton *LCYVoiceBtn;

/**
 *  输入框
 */
@property (weak, nonatomic) IBOutlet UITextView *LCYInputTextView;

/**
 *  表情选择按钮
 */
@property (weak, nonatomic) IBOutlet UIButton *LCYEmoticonPickerBtn;

/**
 *  添加附件按钮
 */

@property (weak, nonatomic) IBOutlet UIButton *LCYAttachmentAddBtn;

/**
 *  代理
 */
@property (weak, nonatomic) IBOutlet id<LCYChatMainViewDelegate> delegate;

/**
 *  表情选择
 */
@property (strong, nonatomic) LCYEmoticonPickerViewController *LCYEmoticonVC;


/**
 *  附件选择
 */
@property (strong, nonatomic) LCYAttachmentAddViewController *LCYAttachmentVC;

/**
 *  设置协议
 *
 *  @param delegate 对象
 */
- (void)setPickEmoticonDelegate:(id<LCYPickEmoticonProtocol>)delegate;

@end
